package com.honey.compilation.sql.dml;

import com.honey.compilation.sql.SqlCommand;
import com.honey.compilation.sql.SqlKeyWord;
import com.honey.compilation.sql.ddl.SQL92Comment;
import com.honey.core.builder.CharacterBuilder;
import com.honey.core.builder.CharacterBuilderFactory;
import com.honey.core.compiler.CompilationException;
import com.honey.core.compiler.IndentSpace;

/**
 * 修改命令 ALERT
 * @author Administrator
 *
 */
public abstract class AbstractSelect extends SQL92Comment implements SqlCommand{
	
	private static final SqlKeyWord SELECT_COMMAND=SqlKeyWord.SELECT ;
	
	@Override
	public String getCommand() {
		return SELECT_COMMAND.getValue();
	}
	
	@Override
	public CharacterBuilder compiledContent(int indentLevel )throws CompilationException {
		CharacterBuilder answer = CharacterBuilderFactory.createC16StringBuilder();
		answer.append(super.compiledContent(indentLevel));
		IndentSpace.spaceIndent(answer, indentLevel);
		answer.append(SELECT_COMMAND);
		return answer;
	}
}
